worker_dictList={"王力宏":{"部门":"科技部","工资":3000,"级别":1},"周杰伦":{"部门":"市场部","工资":5000,"级别":2},"林俊杰":{"部门":"市场部","工资":7000,"级别":3},"张学友":{"部门":"科技部","工资":4000,"级别":1},"刘德华":{"部门":"市场部","工资":6000,"级别":2}}
#获取全部员工名字
wokerNameKeys=worker_dictList.keys()
#通过员工的名字获取内层的key  使用循环获取
for key in wokerNameKeys:
    #存储 全部的用工信息 全部的key   部门、工资...
    workerInfoKey=worker_dictList[key].keys()
    #循环第二层 员工具体信息的字典数据
    for infoKey in workerInfoKey:
        #判断是否为1级
        if infoKey=='级别' and worker_dictList[key][infoKey]==1:
            #上升一级
            worker_dictList[key][infoKey]+=1
            #加多1000块钱
            worker_dictList[key]['工资'] +=1000
print(worker_dictList)
knights = {'gallahad': 'the pure', 'robin': 'the brave'}
for k, v in knights.items():
    print(k, v)
